html {
    width: 100vw;
    height: 100vh;
}

body {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

#header {
    width: 10rem;
    height: 1.173333rem;
    display: flex;
    justify-content: space-between;
    background-color: orangered;
    text-align: center;
    color: #fff;
    font: .533333rem/1.173333rem "";
    font-weight: 600;
}

#header>a:nth-of-type(1) {
    position: relative;
    overflow: hidden;
    width: 1.13333rem;
    height: 100%;
}

#header>a:nth-of-type(1) {
    font: 1.086667rem/1.173333rem "";
    color: white;
}

#header>a:nth-of-type(2)>img {
    width: 1.13333rem;
    height: 100%;
}

#nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    height: .8rem;
    overflow: auto;
    padding: 0;
    background: whitesmoke;
}

#nav::-webkit-scrollbar {
    display: none;
}

#nav>a {
    font-size: .433333rem;
    flex: 1 0 auto;
    color: black;
    padding: 0 0.366667rem;
}

#main {
    background: whitesmoke;
    flex: 1;
    overflow: auto;
}

#main>div>div>img {
    display: block;
    width: 3rem;
}

#main>div {
    display: flex;
    background: white;
    margin: .266667rem .266667rem;
    position: relative;
}

#main>div>div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#main>div>div {
    margin-left: .4rem;
}

#main>div>div>div {
    display: flex;
    margin: .16rem;
}

#main>div>div>span:nth-of-type(1) {
    font-size: .403333rem;
}

#main>div>div>span:nth-of-type(2)>i {
    font-size: .42rem;
    color: red;
}

#main>div>div>span:nth-of-type(2)>em {
    font-size: .54rem;
    color: red;
    margin-left: .106667rem;
}

#main>div>div>span:nth-of-type(2) {
    font-size: .58rem;
    color: red;
    margin-left: .106667rem;
}


/* w:100px h:20px*/

#main #parent {
    width: 2.666667rem;
    height: .533333rem;
    background: rgb(228, 192, 192);
    border-radius: .266667rem;
    position: relative;
}

#main #child {
    /* width: 12%; */
    height: .533333rem;
    background: red;
    border-radius: .266667rem;
    transition: all linear 1s;
}

#couponText {
    position: absolute;
    right: 0.533333rem;
    top: 1.89rem;
    color: orangered;
}

#main>div>div>span:nth-of-type(2)>del {
    font-size: .34rem;
    margin-left: .16rem;
    color: gray;
}

.active {
    color: red;
}

#link>a:nth-of-type(1) {
    display: none;
}

#link>a:nth-of-type(2) {
    border: .026667rem dashed red;
    padding-top: .106667rem;
    color: red;
}

#main>div>div>div:nth-of-type(2)>a:last-of-type {
    background: red;
    color: white;
    height: .6rem;
    padding-top: .08rem;
    margin-left: .213333rem;
}

#footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: whitesmoke;
    padding-top: .333333rem;
}

#footer>div {
    width: 10rem;
    display: flex;
}

#footer>div>a {
    border: .026667rem solid #c4c4c4;
    display: block;
    text-align: center;
    font: .32rem/.8rem "";
    color: black;
}

#footer>div>a:nth-of-type(1) {
    width: 30%;
    border-right: 0;
}

#footer>div>a:nth-of-type(2) {
    width: 30%;
    border-right: 0;
}

#footer>div>a:nth-of-type(3) {
    width: 40%;
}

#footer>p:nth-of-type(1) {
    padding-top: .24rem;
    color: #666;
}

#footer>p:nth-of-type(1)>span:nth-of-type(1) {
    color: red;
}

#footer>p:nth-of-type(2) {
    padding-top: .24rem;
    color: #666;
}